package com.linwen.javase.desgin_pattern.BigTalkDesignPattenJAVACode._04代理模式._2未进行代理;

/**
 * @ClassName Pursuit
 * @Description 追求者
 * @Author zero
 * @DATE 2023/7/11 1:35 PM
 * @Version 1.0
 */

public class Pursuit {
    private SchoolGirl myGirl;
    public Pursuit(SchoolGirl girlLjj) {
        this.myGirl = girlLjj;
    }


    public void giveDolls(){
        System.out.println(this.myGirl.getName() + ",你好！送你洋娃娃。");
    }

    public void giveFlowers(){
        System.out.println(this.myGirl.getName() + ",你好！送你鲜花。");
    }

    public void giveChocolate(){
        System.out.println(this.myGirl.getName() + ",你好！送你巧克力。");
    }
}
